package dk.zpon.andnoise;

public class InfoscreenUI {

	private String mTitle, mAlbum, mArtist, mStingStatus;
	private int mPosition, mTmpPosition, mLength, mVolume, mTmpVolume, mIntStatus;

	public String getTitle() {
		return mTitle;
	}

	public void setTitle(String title) {
		this.mTitle = title;
	}

	public String getAlbum() {
		return mAlbum;
	}

	public void setAlbum(String album) {
		this.mAlbum = album;
	}

	public String getArtist() {
		return mArtist;
	}

	public void setArtist(String artist) {
		this.mArtist = artist;
	}

	public String getStringStatus() {
		return mStingStatus;
	}

	public void setStringStatus(String status) {
		this.mStingStatus = status;
	}
	
	public void setIntStatus(int i)
	{
		this.mIntStatus = i;
	}
	
	public int getIntStatus()
	{
		return this.mIntStatus;
	}

	public String getTotaltime() {
		return this.millisecondsToString(this.mLength);
	}

	public void setLength(int length) {
		this.mLength = length;
	}
	
	public int getLength() {
		return this.mLength;
	}

	public String getTime() {
		return this.millisecondsToString(this.mTmpPosition);
	}

	public void setPosition(int position) {
		this.mPosition = position;
	}
	
	public int getPosition() {
		return this.mPosition;
	}
	
	public int getTmpPosition() {
		return mTmpPosition;
	}

	public void setTmpPosition(int tmpPosition) {
		this.mTmpPosition = tmpPosition;
	}

	public int getVolume() {
		return mVolume;
	}

	public void setVolume(int volume) {
		this.mVolume = volume;
	}

	public int getTmpVolume() {
		return mTmpVolume;
	}

	public void setTmpVolume(int tmpVolume) {
		this.mTmpVolume = tmpVolume;
	}

	private String millisecondsToString(int i)
    {
    	int seconds = i/1000;
		int minutes = seconds/60;
		seconds = seconds-(minutes*60);
    	return String.valueOf(minutes)+":"+(seconds < 10 ? "0" : "")+String.valueOf(seconds);
    }
	
}
